package com.itic.appbase.framework.type;

public enum UsersStoreActive {
	second("001","秒杀"),group("002","拼团"),hot("003","热卖"),jinggpin("004","精品"),special("005","特卖");
	private String type;
	private String name;
	UsersStoreActive(String type,String name){
		this.name = name;
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static UsersStoreActive getUsersStoreActive(String type){
		UsersStoreActive usersStoreActive = null;
		switch(type){
		case"001":
			usersStoreActive = UsersStoreActive.second;
			break;
		case"002":
			usersStoreActive = UsersStoreActive.group;
			break;
		case"003":
			usersStoreActive = UsersStoreActive.hot;
			break;
		case"004":
			usersStoreActive = UsersStoreActive.jinggpin;
			break;
		case"005":
			usersStoreActive = UsersStoreActive.special;
			break;
			default:break;
		}
		return usersStoreActive;
	}
}
